import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Jun/Login'
import Home from '@/components/Jun/Home'
import Friend from '@/components/Jun/Friend'
import Timeline from '@/components/LJY/Timeline'
import Write from '@/components/LJY/Write'
import Drafts from '@/components/LJY/Drafts'
import Published from '@/components/LJY/Published'
import Recycle from '@/components/LJY/Recycle'
import Search from '@/components/LJY/Search'
import Update from '@/components/Jun/Update.vue'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: "Login",
      component: Login
    },{
      path: '/update',
      name: "update",
      component: Update
    },{
      path: '/home',
      name: "Home",
      component: Home,
      children: [
        {
          path:'/friend',
          name:"Friend",
          component:Friend,
          meta: {
            keepAlive: false
          }
        }, {
          path: '/write',
          name: 'Write',
          component: Write,
          meta: {
            keepAlive: false
          }
        },{
          path: '/timeline',
          name: 'Timeline',
          component: Timeline,
          meta: {
            keepAlive: false
          }
        },{
          path: '/drafts',
          name: 'Drafts',
          component: Drafts,
          meta: {
            keepAlive: false
          }
        },{
          path: '/published',
          name: 'Published',
          component: Published,
          meta: {
            keepAlive: false
          }
        },{
          path: '/recycle',
          name: 'Recycle',
          component: Recycle,
          meta: {
            keepAlive: false
          }
        },{
          path: '/search',
          name: 'Search',
          component: Search,
          meta: {
            keepAlive: false
          }
        }]
    }
  ]
})
